<%@ taglib uri="http://jakarta.apache.org/taglibs/display" prefix="display"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"  pageEncoding="ISO-8859-1"%>
<%@page import="com.anduinslegacy.bath.ReminderFactory"%>
<%@page import="com.anduinslegacy.bath.AuditEntry"%>
<%@page import="java.util.Date"%>
<%@page import="java.util.List"%>

<%@page import="com.anduinslegacy.bath.AuditFactory"%><html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
		<link href="../css/displaytag.css" rel="stylesheet" type="text/css">
		<link href="../css/alternative.css" rel="stylesheet" type="text/css">
		<title>Who's turn is it!</title>
		<script type="text/javascript">
			function submitform() {
  				document.myform.submit();
			}			
		</script>		
	</head>
	<body onLoad="document.myform.password.focus()">
	<%
		// Get the list of audit entries
		//List<AuditEntry> entries = AuditFactory.get();
		
		// Stuff the List in the request for use later.
		//request.setAttribute("entries", entries);
	%>	
		<div align="center">
			<%=ReminderFactory.getReminder()%>
			<jsp:include page="DisplayDate.jsp" />
			<div style="position:static;bottom:0;">
				<form METHOD="POST" ACTION="/reminder" name="myform">
					<input type="password" name="password" />					
				</form>
			<%
				try {
					String cmd = request.getParameter("cmd");
					if (cmd.equals("error")) { %>
						<font color="red"><b>Wrong Password</b></font>
					<%}
				} catch (NullPointerException npe) {
					// do nothing.
				}
			%>
				<br />
				<a href="javascript: submitform()" style="text-decoration: none;">Go!</a>
			</div>
			<!-- 
			<display:table name="entries" pagesize="10">
				<display:column property="activity_date" title="Activity" sort="true"/>
				<display:column property="password_used" title="Tried" sort="true"/>
				<display:column property="status" title="Status" sort="true"/>
				<display:column property="IP_Address" title="Status" sort="true"/>				
			</display:table>
			 -->
		</div>
	</body>
</html>